.class Lcom/instagram/android/x/d;
.super Lcom/instagram/android/d/j/a;
.source "AutoUpdateHelper.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/a",
        "<",
        "Lcom/instagram/android/model/a;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Landroid/support/v4/app/j;

.field final synthetic b:Lcom/instagram/android/x/g;

.field final synthetic c:Lcom/instagram/android/x/c;


# direct methods
.method constructor <init>(Lcom/instagram/android/x/c;Landroid/support/v4/app/j;Lcom/instagram/android/x/g;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 85
    iput-object p1, p0, Lcom/instagram/android/x/d;->c:Lcom/instagram/android/x/c;

    iput-object p2, p0, Lcom/instagram/android/x/d;->a:Landroid/support/v4/app/j;

    iput-object p3, p0, Lcom/instagram/android/x/d;->b:Lcom/instagram/android/x/g;

    invoke-direct {p0}, Lcom/instagram/android/d/j/a;-><init>()V

    return-void
.end method


# virtual methods
.method protected a(Lcom/instagram/android/d/j/j;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Lcom/instagram/android/model/a;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 106
    const-string v0, "AutoUpdateHelper"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Version check request failed: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 107
    return-void
.end method

.method protected a(Lcom/instagram/android/model/a;)V
    .locals 6
    .parameter

    .prologue
    .line 88
    const-string v0, "AutoUpdateHelper"

    const-string v1, "Completed update check successfully."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 90
    iget-object v0, p0, Lcom/instagram/android/x/d;->c:Lcom/instagram/android/x/c;

    invoke-static {v0}, Lcom/instagram/android/x/c;->a(Lcom/instagram/android/x/c;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/h/a;->b(Landroid/content/Context;)I

    move-result v0

    .line 91
    invoke-virtual {p1}, Lcom/instagram/android/model/a;->b()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 92
    invoke-virtual {p1}, Lcom/instagram/android/model/a;->a()Ljava/lang/String;

    move-result-object v2

    .line 94
    const-string v3, "AutoUpdateHelper"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Current: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, " min: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 95
    if-ge v0, v1, :cond_1

    invoke-static {v2}, Lcom/instagram/k/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 96
    iget-object v0, p0, Lcom/instagram/android/x/d;->c:Lcom/instagram/android/x/c;

    iget-object v1, p0, Lcom/instagram/android/x/d;->a:Landroid/support/v4/app/j;

    invoke-static {v0, v1, v2}, Lcom/instagram/android/x/c;->a(Lcom/instagram/android/x/c;Landroid/support/v4/app/j;Ljava/lang/String;)V

    .line 102
    :cond_0
    :goto_0
    return-void

    .line 98
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/x/d;->b:Lcom/instagram/android/x/g;

    sget-object v1, Lcom/instagram/android/x/g;->b:Lcom/instagram/android/x/g;

    if-ne v0, v1, :cond_0

    .line 99
    iget-object v0, p0, Lcom/instagram/android/x/d;->c:Lcom/instagram/android/x/c;

    iget-object v1, p0, Lcom/instagram/android/x/d;->a:Landroid/support/v4/app/j;

    invoke-static {v0, v1}, Lcom/instagram/android/x/c;->a(Lcom/instagram/android/x/c;Landroid/support/v4/app/j;)V

    goto :goto_0
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 85
    check-cast p1, Lcom/instagram/android/model/a;

    invoke-virtual {p0, p1}, Lcom/instagram/android/x/d;->a(Lcom/instagram/android/model/a;)V

    return-void
.end method
